package com.libinyn.base.pms.mapper.sys;

import com.libinyn.base.pms.entity.sys.SysRoleEntity;
import com.libinyn.base.pms.mapper.MyMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * 角色管理
 * @fileName: SysRoleMapper.java
 * @author: bin.li01
 * @date: 2017/12/12 19:03 
 * @version: v1.0.0
 */
@Mapper
public interface SysRoleMapper extends MyMapper<SysRoleEntity> {

	/**
	 * 查询用户创建的角色ID列表
	 * @param createUserId
	 * @return
	 */
	List<Long> queryRoleIdList(Long createUserId);

	/**
	 * 批量删除数据
	 * @param roleIds
	 */
	 void deleteBatch(Long[] roleIds);
}
